<div class="popup_body">
    <div class="ui_table">
        <form id="form_${pid}">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td width="70" align="right">字典编码：</td>
                    <td><input type="text" class="text easyui-validatebox" required="true" name="itemCode" value="" maxlength="41"/></td>
                    <td width="70" align="right">字典名称：</td>
                    <td>
                        <input type="text" class="text easyui-validatebox" required="true" name="itemName" value="" maxlength="41"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">编码分类：</td>
                    <td>
                        <input class="text easyui-combobox" name="dictCategoryId" required="true" style="width:180px; height: 28px;"
                               data-options="valueField:'id',textField:'text',editable: false,url:'${contextPath}/security/basic/dict_item/find_category.htm'" />
                    </td>
                    <td align="right">备注：</td>
                    <td><input type="text" class="text" name="memo" value=""maxlength="41"/></td>

                </tr>
            </table>
        </form>
    </div>
</div>
<div class="popup_btn">
    <button class="btn btn_red ok">确定</button>
    <button class="btn btn_border close">关闭</button>
</div>

<script type="text/javascript">
    (function() {
        var pid = '${pid}', win = $('#' + pid), form = win.find('form');
        win.find('button.ok').click(function() {
            form.form('submit', {
                url: '${contextPath}/security/basic/dict_item/create.htm',
                success: function(text) {
                    var json = $.evalJSON(text);
                        <@app.json_jump/>
                    if(json.success) {
                        $.messager.alert('提示信息', '操作成功', 'info');
                        win.window('close');
                    } else {
                        $.messager.alert('提示信息', json.message, 'info');
                    }
                }
            });
        });

        win.find('button.close').click(function() {
            win.window('close');
        });

    })();


</script>